package com.ruoyi.mark.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mark.mapper.CfSearchMapper;
import com.ruoyi.mark.domain.CfSearch;
import com.ruoyi.mark.service.ICfSearchService;

/**
 * 搜索记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
@Service
public class CfSearchServiceImpl implements ICfSearchService 
{
    @Autowired
    private CfSearchMapper cfSearchMapper;

    /**
     * 查询搜索记录
     * 
     * @param id 搜索记录主键
     * @return 搜索记录
     */
    @Override
    public CfSearch selectCfSearchById(Long id)
    {
        return cfSearchMapper.selectCfSearchById(id);
    }

    /**
     * 查询搜索记录列表
     * 
     * @param cfSearch 搜索记录
     * @return 搜索记录
     */
    @Override
    public List<CfSearch> selectCfSearchList(CfSearch cfSearch)
    {
        return cfSearchMapper.selectCfSearchList(cfSearch);
    }

    /**
     * 新增搜索记录
     * 
     * @param cfSearch 搜索记录
     * @return 结果
     */
    @Override
    public int insertCfSearch(CfSearch cfSearch)
    {
        return cfSearchMapper.insertCfSearch(cfSearch);
    }

    /**
     * 修改搜索记录
     * 
     * @param cfSearch 搜索记录
     * @return 结果
     */
    @Override
    public int updateCfSearch(CfSearch cfSearch)
    {
        return cfSearchMapper.updateCfSearch(cfSearch);
    }

    /**
     * 批量删除搜索记录
     * 
     * @param ids 需要删除的搜索记录主键
     * @return 结果
     */
    @Override
    public int deleteCfSearchByIds(Long[] ids)
    {
        return cfSearchMapper.deleteCfSearchByIds(ids);
    }

    /**
     * 删除搜索记录信息
     * 
     * @param id 搜索记录主键
     * @return 结果
     */
    @Override
    public int deleteCfSearchById(Long id)
    {
        return cfSearchMapper.deleteCfSearchById(id);
    }
}
